import Login from "./views/Login.vue";
import NotFound from "./views/404.vue";
import Home from "./views/Home.vue";
import Main from "./views/Main.vue";
/**/
import analyze from "./views/analyze/Analyze.vue"
import activity from "./views/activity/Activity.vue"
import advices from "./views/advices/advices.vue"
import appHome from "./views/apphome/home.vue"
import slide from "./views/apphome/slide.vue"
import notice from "./views/apphome/notice.vue"
import icon from "./views/apphome/icon.vue"
import education from "./views/apphome/education.vue"
import securityOpen from "./views/apphome/securityOpen.vue"
import product from "./views/apphome/product.vue"
import customer from "./views/apphome/customer.vue"
import setting from "./views/setting/setting.vue"
import userSetting from "./views/user/usersetting.vue"
import feedback from "./views/feedback/feedback.vue"
import rules from "./views/rules/rules.vue"
import essay from "./views/essay/essay.vue"
import talk from "./views/talk/talk.vue"
import Role from "./views/system/role.vue"
import User from "./views/system/user.vue"
import Menu from "./views/system/menu.vue"
import course from "./views/course/course.vue"
import lessons from "./views/course/lessons.vue"
import phaseCourse from "./views/course/phaseCourse.vue"
import gather from "./views/gather/gather.vue"
import classify from "./views/classify/classify.vue"
import account from "./views/account/account.vue"
import advert from "./views/advert/advert.vue"

import activitySign from "./views/activity/Sign.vue"
import activityJietao from "./views/activity/Jietao.vue"
import activityInvite from "./views/activity/Invite.vue"

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'fa fa-id-card-o',//图标样式class
        children: [
            {path: '/sys/role', component: Role, name: '角色管理', leaf: true},
            {path: '/sys/user', component: User, name: '用户管理', leaf: true},
            {path: '/sys/menu', component: Menu, name: '菜单管理', leaf: true}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '设置',
        iconCls: 'fa fa-id-card-o',//图标样式class
        children: [
            {path: '/setting', component: setting, name: '系统设置', leaf: true},
            {path: '/userSetting', component: userSetting, name: '用户信息设置', leaf: true},
            {path: '/rules', component: rules, name: '规则管理', leaf: true},
            {path: '/appHomeSetting', component: appHome, name: 'app首页设置', leaf: true},
            {path: '/main', component: Main, name: '主页', hidden: true, leaf: true},
            {path: '/appHomeSetting/slide', component: slide, name: '幻灯片设置', leaf: true, hidden: true},
            {path: '/appHomeSetting/notice', component: notice, name: '公告设置', leaf: true, hidden: true},
            {path: '/appHomeSetting/icon', component: icon, name: '图标设置', leaf: true, hidden: true},
            {path: '/appHomeSetting/education', component: education, name: '教育设置', leaf: true, hidden: true},
            {path: '/appHomeSetting/securityOpen', component: securityOpen, name: '证劵开户设置', leaf: true, hidden: true},
            {path: '/appHomeSetting/product', component: product, name: '金融产品设置', leaf: true, hidden: true},
            {path: '/appHomeSetting/customer/:id', component: customer, name: '自定义设置', leaf: true, hidden: true},
            {path: '/advert', component: advert, name: '广告设置', leaf: true},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '内容管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/analyze', component: analyze, name: '分析管理', leaf: true},
            {path: '/advices', component: advices, name: '消息管理', leaf: true},
            {path: '/essay', component: essay, name: '文章管理', leaf: true},
            {path: '/feedback', component: feedback, name: '意见反馈管理', leaf: true},
            {path: '/talk', component: talk, name: '说说管理', leaf: true},
            {path: '/gather', component: gather, name: '采集管理', leaf: true},
            {path: '/account', component: account, name: '证劵开户管理', leaf: true},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '活动营销管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/activity', component: activity, name: '活动管理', leaf: true},
            {path: '/activity/sign', component: activitySign, name: '签到活动管理', leaf: true},
            {path: '/activity/jietao', component: activityJietao, name: '解套活动管理', leaf: true},
            {path: '/activity/invite', component: activityInvite, name: '邀请有礼活动管理', leaf: true},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '课程管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/course', component: course, name: '课程管理', leaf: true},
            {path: '/classify', component: classify, name: '课程分类管理', leaf: true},
            {path: '/phase', component: phaseCourse, name: '阶段课程管理', leaf: true},
            {path: '/lessons/:id', component: lessons, name: '课程详情', hidden: true},
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: {path: '/404'}
    }
];

export default routes;